package com.abbas.abchat.dao;

import com.abbas.abchat.entity.Account;
import com.abbas.abchat.entity.ChatTable;

import java.util.List;

/**
 * @author abbas
 * @description: the dao of account
 * @date 2022/4/13 14:23
 */
public interface AccountDao extends BaseDao<Account>{

    Account findByAccount(String account) throws Exception;

    List<Account> findListById(Integer[] ids) throws Exception;

    List<Account> findByNickName(String targetStr) throws Exception;

    List<Account> findListById(List<ChatTable> chatTables) throws Exception;

    int deleteByAccount(String account) throws Exception;

    int updateByAccount(String account) throws Exception;

}
